import request from '@/utils/request';
import roleManager from "../views/system_settings/roleManager";
export default {

  //分页查询所有角色
  pageListRole(current,limit){
    return request({
      url: `/q-role/pageListRole/${current}/${limit}`,
      method: 'post',
      // data: teacherQuery,
    })
  },
  //添加角色
  saveRole(role){
    return request({
      url: `/q-role/saveRole`,
      method: 'post',
      data: role
    })
  },
  //删除角色
  removeRoleById(id){
    return request({
      url: `/q-role/deleteRole/${id}`,
      method: 'get',

    })
  },
  //按角色ID查找角色
  findRoleById(id){
    return request({
      url: `/q-role/findByIdRole/${id}`,
      method: 'get'
    })
  },
  //更新角色
  updateRole(role){
    return request({
      url: `/q-role/updateRole`,
      method: 'post',
      data: role
    })
  }

}
